#define _CRT_SECURE_NO_WARNINGS 1

#include"Stack.h"

int main()
{
	Stack plist;
	StackInit(&plist);
	StackPush(&plist, 1);
	StackPush(&plist, 2);
	StackPush(&plist, 3);
	StackPush(&plist, 4);

	while (!StackEmpty(&plist))
	{
		printf("%d ",StackTop(&plist));
		StackPop(&plist);
	}


	StackDestroy(&plist);
	return 0;
}